﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DicitiControlLib;
using AxDicitiControlLib;


namespace Emergency.Controls
{
    public partial class FrmChooseScene : DevExpress.XtraEditors.XtraForm
    {
        private AxDCT3DWindow d3 = null;
        private IConfig _config = null;
        private IInformationTree _it = null;

        public string SceneFilePath = string.Empty;
        public FrmChooseScene()
        {
            InitializeComponent();
            d3 = this.axDCT3DWindow1;
            _config = d3.config;
            _it = d3.infoTree;

            IInitializeResult res = _config.Initialize();
            if (res == null || res.isOK == false)
            {

                MessageBox.Show("三维控件初始化失败!");

            }
        }

        private void FrmChooseScene_Load(object sender, EventArgs e)
        {
            _config.Load(SceneFilePath, string.Empty, false);
        }
    }
}